home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / (A)P / (A)P1.ADF / Polygon / iffwriter / iffwriter.h < prev    next >
C/C++ Source or Header  |  1987-05-25  |  1KB  |  43 lines

  1.  
  2. /*
  3.              Copyright (c) 1985, Robert S. French
  4.                   Placed in the Public Domain
  5. */
  6. #include "exec/types.h"
  7. #include "exec/nodes.h"
  8. #include "exec/lists.h"
  9. #include "devices/timer.h"
  10. #include "libraries/dos.h"
  11. #include "lattice/stdio.h"
  12. #include "lattice/math.h"
  13. #include "intuition/intuition.h"
  14. #include "graphics/text.h"
  15. #include "fcntl.h"
  16. #include "iff.h"
  17.  
  18. struct   BitMapHeader
  19. {
  20.    USHORT   w;
  21.    USHORT   h;
  22.    SHORT   x, y;
  23.    UBYTE   nPlanes, masking, compression, pad1;
  24.    USHORT   TransparentColor;
  25.    UBYTE   xAspect, yAspect;
  26.    SHORT   PageWidth, PageHeight;
  27. };
  28.  
  29. struct   PaintingHeader
  30. {
  31.    LONG   IFFID, FileLength, ILBMID, BMHDID, BitMapSize;
  32.    struct   BitMapHeader BitMapHeader;
  33.    LONG   CMAP, CMAPlength;
  34. };
  35.  
  36. /* the MakeID macro is defined in iff.h */
  37. #define ILBM                    MakeID('I','L','B','M')
  38. #define BMHD                    MakeID('B','M','H','D')
  39. #define BODY                    MakeID('B','O','D','Y')
  40. #define CMAP                    MakeID('C','M','A','P')
  41. #define CAMG                    MakeID('C','A','M','G')
  42.  
  43.